package t_421

func findMaximumXOR(nums []int) int {
	max := 0
	xor := 0
	length := len(nums)
	for i := 0; i < length; i++ {
		for j := 0; j < length; j++ {
			xor = nums[i] ^ nums[j]
			if max < xor {
				max = xor
			}
		}
	}
	return max
}
